require("../../assets/css/normalize.css");
require("../../assets/css/reset.css");
require("./ad.less");

// 引入工具函数
const dom = require("../../utils/dom.js");

window.addEventListener("DOMContentLoaded", function () {
	let num = 5;
	window.setInterval(function () {
		num--;
		dom.get(".time").textContent = `${num}s`;
		if (num < 0) {
			location.href = "./login.html";
		}
	}, 1000);
});
